tests/auto-prune: Don't go negative
authorColin Walters <walters@verbum.org>
Fri, 21 Mar 2025 12:11:50 +0000 (08:11 -0400)
committerColin Walters <walters@verbum.org>
Fri, 21 Mar 2025 12:13:36 +0000 (08:13 -0400)
commit75f2f7d50d07c0a98f429e6974685a87adea9584
tree1d0a5e3f3d45ad7f3c92b2c41a07607d2d147629
parentba2f9a93b2320879e1de2aa99a517fbd2d00e05a
tests/auto-prune: Don't go negative

- First I kept wondering what the magic of 10000 was here before
  looking above and noticing it matched the number of dtb files.
  Make a shared variable so the connection is more obvious
- Next, I *believe* the intention of this test was to test
  the edge case of bytes vs blocks, but we ended up subtracting
  blocks and I think recent FCOS images happened to get small
  enough that we started going negative here.
  Fix this to convert the bytes into blocks.
tests/kolainst/destructive/auto-prune.sh